package com.topnav.mc.admin.entity.wrapper;

import com.topnav.mc.admin.entity.param.SystemLogParam;
import com.topnav.mc.admin.entity.param.UserRoleParam;
import com.topnav.mc.base.mc.McWrapper;

/**
 * @Author: kenny
 * @Date: 2024/3/12 10:28
 */
public class SystemLogWrapper extends McWrapper<SystemLogParam> {
    public SystemLogWrapper(SystemLogParam entity) {
        super(entity);
        if (entity != null){
            if (entity.getId()!=null){this.eq("l.id",entity.getId());}
            if (entity.getFromTime()!=null){
                this.ge("l.create_time",entity.getFromTime());
            }
            if (entity.getToTime()!=null){
                this.le("l.create_time",entity.getToTime());
            }
        }
    }
}
